package com.roc.util.constant;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 * @author Administrator
 *
 */
public enum TerminalBrandLength {
//	BRAND_BAIFU("00", ""), // 百富
	BRAND_BAIFU_D210("00_04", "8"), // D210
	BRAND_BAIFU_A92("00_05", "8"), // A92
	BRAND_BAIFU_S90("00_00", "8"), // S90
	BRAND_BAIFU_S58("00_01", "8"), // S58
	BRAND_BAIFU_S910("00_02", "8"), // S910
	BRAND_BAIFU_A920("00_03", "8"), // A920
	
//	BRAND_SHENGTENG("11", ""), // 升腾
//	BRAND_SHENGTENG_("11_00", ""), // 00_960F-------暂无
	
//	BRAND_XINDALU("12", ""), // 新大陆
	BRAND_XINDALU_SP80("12_00", "12"), // SP80
	BRAND_XINDALU_SP60("12_01", "12"), // SP60
	BRAND_XINDALU_SP50("12_02", "12"), // SP50
	BRAND_XINDALU_ME31("12_03", "12"), // ME31
	BRAND_XINDALU_N900("12_04", "12"), // N900
	
//	BRAND_SHIMAI("13", ""), // 世麦
	BRAND_SHIMAI_P8000("13_00", "19"), // P8000
	BRAND_SHIMAI_P2000("13_01", "19"), // P2000
	
//	BRAND_YANGHANG("24", ""), // 杨航
	BRAND_YANGHANG_HY600("24_00", "15"), // HY600
	
//	BRAND_SHIDA("03", ""), // 实达
	BRAND_SHIDA_S_1000("03_02", "11"), // S-1000
	BRAND_SHIDA_S980("03_03", "8/9/10/11"), // S980
	BRAND_SHIDA_WP70("03_00", "8/9/10/11"), // WP70
	BRAND_SHIDA_WP50("03_01", "8/9/10/11"), // WP50
	
//	BRAND_YINDIAN("14", ""), // 银点
	BRAND_YINDIAN_S500("14_00", "17"), // S500
	
//	BRAND_LIANDI("04", ""), // 联迪
	BRAND_LIANDI_A8("04_04", "8"), // A8
	BRAND_LIANDI_E550("04_00", "8"), // E550
	BRAND_LIANDI_E530("04_01", "8"), // E530
	BRAND_LIANDI_E350("04_02", "8"), // E350
	BRAND_LIANDI_E330("04_03", "8"), // E330
	
//	BRAND_MOFANG("26", ""), // 魔方
	BRAND_MOFANG_MF90("26_00", "15"), // MF90
	
//	BRAND_HUIERFENG("05", ""), // 惠尔丰
	
	
//	BRAND_XINGUODU("06", ""), // 新国都
	BRAND_XINGUODU_G2("06_00", "11"), // G2
	BRAND_XINGUODU_G3("06_01", "11"), // G3
	BRAND_XINGUODU_K320("06_02", "11"), // K320
	BRAND_XINGUODU_K370("06_03", "11"), // K370
	
//	BRAND_JINHONGLIN("07", ""), // 锦弘霖
	BRAND_JINHONGLIN_S98("07_00", "15"), // S98
	BRAND_JINHONGLIN_H80("07_01", "15/16"), // H80
	
//	BRAND_JIUSITAIDA("29", ""), // 九思泰达
	BRAND_JIUSITAIDA_01_M3000("29_01", "14"), // 01_M3000
	BRAND_JIUSITAIDA_00_S1000("29_00", "14"), // 00_S1000
	
//	BRAND_HUAZHIRONG("09", ""), // 华智融
	BRAND_HUAZHIRONG_8210("09_00", "8/10"), // 8210
	BRAND_HUAZHIRONG_8110("09_01", "8/10"), // 8110
	BRAND_HUAZHIRONG_7210("09_02", "8/10"), // 7210
	
//	BRAND_HAIXIN("30", ""), // 海信
//	BRAND_HAIXIN_00_M21("30_00", ""), // 00_M21-------暂无
	
//	BRAND_TIANYUXINXI("31", ""), // 天喻信息
	BRAND_TIANYUXINXI_00_TP30L("31_00", "16"), // 00_TP30L
	
//	BRAND_YIMINGSHENZHOU("10", ""), // 一鸣神州
	BRAND_YIMINGSHENZHOU_A98("10_00", "18"), // A98
	
///	BRAND_ZHINENGGUO("32", ""), // 智能果
//	BRAND_ZHINENGGUO_("32_00", ""), // 00_乐POS-L12-------暂无
	
	 ;
	 
	 
	 
	private String code;
	private String name;
	private boolean editAble;
	private boolean enabled;

	private TerminalBrandLength( String name,String code) {
		this.code = code;
		this.name = name;
		
	}

	public boolean isEditAble() {
		return editAble;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public static TerminalBrandLength valueOfCode(String code) {
		if (StringUtils.isBlank(code)) {
			throw new IllegalArgumentException("TerminalBrandLength code " + code
					+ " is blank");
		}
		for (TerminalBrandLength ms : values()) {
			if (ms.getCode().equals(code)) {
				return ms;
			}
		}
		throw new IllegalArgumentException("TerminalBrandLength code " + code
				+ " is not exist");
	}

}
